// 联系人类型
export interface Contact {
  id: string;
  name: string;
  category: string;
  phone?: string;
  birthday?: string;
  notes?: string;
  createTime: string;
  updateTime: string;
}

// 分类信息
export interface Category {
  id: string;
  name: string;
  type: 'contact' | 'gift'; // 联系人分类或礼物分类
  createTime: string;
  updateTime: string;
}

// 用户设置
export interface Settings {
  id: string;
  password?: string; // 访问密码
  autoBackup: boolean; // 是否自动备份
  backupFrequency: number; // 备份频率（天）
  lastBackupTime?: string; // 最后备份时间
  createTime: string;
  updateTime: string;
}

// 存储数据结构
export interface StorageData {
  contacts: Contact[];
  categories: Category[];
  settings: Settings;
} 